import request from '@/utils/request'

// 查询医嘱执行单与途径对照列表 (分页)
export function selectPageOrdersWayClassify(query) {
    return request({
        url: '/business/ordersWayClassify/selectPage',
        method: 'get',
        params: query
    })
}

// 查询医嘱执行单与途径对照列表 (不分页)
export function listOrdersWayClassify(query) {
    return request({
        url: '/business/ordersWayClassify/list',
        method: 'get',
        params: query
    })
}

// 查询医嘱执行单与途径对照详细
export function getOrdersWayClassify(ordersWayClassifyId) {
    return request({
        url: '/business/ordersWayClassify/' + ordersWayClassifyId,
        method: 'get'
    })
}

// 新增医嘱执行单与途径对照
export function addOrdersWayClassify(data) {
    return request({
        url: '/business/ordersWayClassify',
        method: 'post',
        data: data
    })
}

// 修改医嘱执行单与途径对照
export function updateOrdersWayClassify(data) {
    return request({
        url: '/business/ordersWayClassify',
        method: 'put',
        data: data
    })
}

// 删除医嘱执行单与途径对照
export function delOrdersWayClassify(ordersWayClassifyId) {
    return request({
        url: '/business/ordersWayClassify/' + ordersWayClassifyId,
        method: 'delete'
    })
}
